L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ S l o t V i e w e r . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ S i g n a l S c o p e 2 . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ H a l . e x e " 
 
 
 
 B u t t o n   1   T e x t   H o m e _ A l l 
 
 B u t t o n   H o m e _ A l l   T e x t   " H o m e   A L L " 
 
 B u t t o n   H o m e _ A l l   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   2   T e x t   H o m e _ X 
 
 B u t t o n   H o m e _ X   T e x t   " H o m e   X " 
 
 B u t t o n   H o m e _ X   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   3   T e x t   H o m e _ Y 
 
 B u t t o n   H o m e _ Y   T e x t   " H o m e   Y " 
 
 B u t t o n   H o m e _ Y   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   4   T e x t   H o m e _ Z 
 
 B u t t o n   H o m e _ Z   T e x t   " H o m e   Z " 
 
 B u t t o n   H o m e _ Z   C o l o r   L i g h t B l u e 
 
 
 
 B u t t o n   6   T e x t   S e q u e n c e 
 
 B u t t o n   7   T e x t   A b o r t S e w i n g 
 
 
 
 B u t t o n   8   T e x t   E n a b l e M o t o r s 
 
 B u t t o n   E n a b l e M o t o r s   C o l o r   T a n 
 
 
 
 B u t t o n   9   T e x t   D i s a b l e M o t o r s 
 
 B u t t o n   D i s a b l e M o t o r s   C o l o r   T a n 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M o t o r X   =   1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M o t o r Y   =   3 
 
 V a r i a b l e   N u m e r i c   S l o t _ M o t o r Z   =   5 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r X 	 	 =     1 9 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r Y 	 	 =     2 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r Z 	 	 =     2 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n a b l e M o t o r s 	 =     1 0 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e       =     2 5 
 
 
 
 V a r i a b l e   N u m e r i c   S t o p A n g l e   =   9 0 
 
 V a r i a b l e   N u m e r i c   S t a r t A n g l e   =   2 7 0 
 
 
 
 V a r i a b l e   N u m e r i c   X m a x   =   9 0 0 
 
 V a r i a b l e   N u m e r i c   X m i n   =   0 
 
 V a r i a b l e   N u m e r i c   Y m a x   =   9 0 0 
 
 V a r i a b l e   N u m e r i c   Y m i n   =   0 
 
 V a r i a b l e   N u m e r i c   M a x P i t c h   =   4 
 
 V a r i a b l e   N u m e r i c   M a x P e r S e c   =   2 0 
 
 
 
 S e w I n i t   S l o t _ M o t o r X   S l o t _ M o t o r Y   S l o t _ M o t o r Z   S t o p A n g l e   S t a r t A n g l e 
 
 
 
 S e w L i m i t s   X m i n   X m a x   Y m i n   Y m a x   M a x P e r S e c 
 
 
 
 S t o p 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '   E N A B L E / D I S A B L E   M O T O R S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   E n a b l e M o t o r s 
 
 	 S l o t ( S l o t _ E n a b l e M o t o r s )   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e M o t o r s 
 
 	 G o s u b   W a i t A l l M o t o r s 
 
 	 S l o t ( S l o t _ E n a b l e M o t o r s )   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     H O M E     X   Y   Z 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   H o m e _ A l l 
 
 	 G o s u b   E n a b l e M o t o r s 
 
 	 G o s u b   H o m e _ Z 
 
 	 G o s u b   H o m e _ X 
 
 	 G o s u b   H o m e _ Y 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e _ X 
 
 	 G o s u b   E n a b l e M o t o r s 
 
 	 S l o t M o t o r   =   S l o t _ M o t o r X 
 
 	 S l o t S e n s o r   =   S l o t _ S e n s o r X 
 
 	 S p e e d S e a r c h   =   - 0 . 3 
 
 	 S p e e d R e t u r n   =   + 0 . 0 5 
 
 	 D e c l a r e d S w i t c h P o s   =   0 
 
 	 I n i t i a l P o s i t i o n   =   1 
 
 	 G o s u b   H o m e M o t o r 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e _ Y 
 
 	 G o s u b   E n a b l e M o t o r s 
 
 	 S l o t M o t o r   =   S l o t _ M o t o r Y 
 
 	 S l o t S e n s o r   =   S l o t _ S e n s o r Y 
 
 	 S p e e d S e a r c h   =   - 0 . 1 
 
 	 S p e e d R e t u r n   =   + 0 . 0 5 
 
 	 D e c l a r e d S w i t c h P o s   =   0 
 
 	 I n i t i a l P o s i t i o n   =   1 
 
 	 G o s u b   H o m e M o t o r 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m e _ Z 
 
 	 G o s u b   E n a b l e M o t o r s 
 
 	 S l o t M o t o r   =   S l o t _ M o t o r Z 
 
 	 S l o t S e n s o r   =   S l o t _ S e n s o r Z 
 
 	 S p e e d S e a r c h   =   + 0 . 0 0 5 
 
 	 S p e e d R e t u r n   =   - 0 . 0 0 0 1 
 
 	 D e c l a r e d S w i t c h P o s   =   0 
 
 	 I n i t i a l P o s i t i o n   =   0 
 
 	 G o s u b   H o m e M o t o r 
 
 	 ' G o s u b   P r i n t V a l u e s 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     H o m e   t h e   M o t o r ( S l o t M o t o r )   t o   t h e   S e n s o r ( S l o t S e n s o r ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 V a r i a b l e   N u m e r i c   S l o t M o t o r 
 
 V a r i a b l e   N u m e r i c   S l o t S e n s o r 
 
 V a r i a b l e   N u m e r i c   S p e e d S e a r c h 
 
 V a r i a b l e   N u m e r i c   S p e e d R e t u r n 
 
 V a r i a b l e   N u m e r i c   D e c l a r e d S w i t c h P o s 
 
 V a r i a b l e   N u m e r i c   I n i t i a l P o s i t i o n 
 
 
 
 L a b e l   H o m e M o t o r 
 
 	 ' G o s u b   D i s a b l e A l l B u t t o n s 
 
 	 ' B u t t o n   C l o s e A l l   E n a b l e d 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - -   d e t a c h   i f   s e n s o r   i s   a c t i v e 
 
 	 I f   S l o t ( S l o t S e n s o r )   >   5 0 0   O r   K e y ( " C T R L " ) 
 
 	 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d R e t u r n 
 
 	 E n d I f 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - -   s e a r c h   t h e   s e n s o r 
 
 L a b e l   S e a r c h H o m e 
 
 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d S e a r c h 
 
 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 I f   S l o t ( S l o t S e n s o r )   >   5 0 0   O r   K e y ( " C T R L " ) 
 
 	 	 S l o t ( S l o t M o t o r )   =   R e s e t 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 	 S l o t ( S l o t M o t o r )   =   0 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 	 G o t o   D e t a c h S e n s o r 
 
 	 E n d I f 
 
 G o t o   S e a r c h H o m e 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - -   d e t a c h   f r o m   t h e   s e n s o r 
 
 L a b e l   D e t a c h S e n s o r 
 
 	 S l o t ( S l o t M o t o r )   =   S l o t ( S l o t M o t o r )   +   S p e e d R e t u r n 
 
 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 I f   S l o t   ( S l o t S e n s o r )   <   5 0 0 
 
 	 	 S l o t ( S l o t M o t o r )   =   R e s e t 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 	 S l o t ( S l o t M o t o r )   =   D e c l a r e d S w i t c h P o s 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 	 G o t o   S e t F i n a l V a l u e s 
 
 	 E n d I f 
 
 G o t o   D e t a c h S e n s o r 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - -   r e s e t   a n d   m o v e   t o   I n i t i a l P o s 
 
 L a b e l   S e t F i n a l V a l u e s 
 
 	 S l o t ( S l o t M o t o r )   =   I n i t i a l P o s i t i o n 
 
 	 G o s u b   W a i t M o t o r 
 
 	 ' G o s u b   E n a b l e A l l B u t t o n s 
 
 	 ' B u t t o n   R u n S e q u e n c e   D i s a b l e d 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       W a i t   u n t i l   t h e   m o t o r ( S l o t M o t o r )   i s   s t o p p e d 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 V a r i a b l e   N u m e r i c   W a i t M o t 1 
 
 L a b e l   W a i t M o t o r 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 F o r   W a i t M o t 1   =   1   T o   9 e 9 9 
 
 	 	 I f   A b s ( S l o t ( S l o t M o t o r   +   1 ) )   <   0 . 0 1 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 0 5 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '       W a i t   u n t i l   a l l   m o t o r s   a r e   s t o p p e d 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   W a i t A l l M o t o r s 
 
 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 V a r i a b l e   N u m e r i c   W M 1 
 
 	 F o r   W M 1   =   1   T o   9 e 9 9 
 
 	 	 I f   A b s ( S l o t ( S l o t _ M o t o r X   +   1 ) )   <   0 . 0 1 
 
 	 	 	 I f   A b s ( S l o t ( S l o t _ M o t o r Y   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 I f   A b s ( S l o t ( S l o t _ M o t o r Z   +   1 ) )   <   0 . 0 1 
 
 	 	 	 	 	 E x i t 
 
 	 	 	 	 E n d I f 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 0 1 
 
 	 	 ' G o s u b   U p d a t e B u t t o n s 
 
 	 N e x t 
 
 	 ' G o s u b   U p d a t e B u t t o n s 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E W I N G   F U N C T I O N S 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   W a i t S e w i n g 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 I f     S e w P r o g r e s s   <   0 
 
 	 	 	 E x i t 
 
 	 	 E l s e 
 
 	 	 	 P r i n t   I n t ( S e w P r o g r e s s   *   1 0 0 )   +   "   % " 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 L a b e l   A b o r t S e w i n g 
 
 	 S e w A b o r t 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e X 1 Y 1 
 
 	 S l o t   S l o t _ M o t o r X   =   1 
 
 	 S l o t   S l o t _ M o t o r Y   =   1 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e X 1 0 Y 1 0 
 
 	 S l o t   S l o t _ M o t o r X   =   1 0 
 
 	 S l o t   S l o t _ M o t o r Y   =   1 0 
 
 R e t u r n 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E Q U E N C E 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e q u e n c e 
 
 	 G o s u b   M o v e X 1 0 Y 1 0 
 
 	 '             x       y     m m / s   s t / s       f l a g s 
 
 	 S e w T o   1 0     1 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 S e w T o   1 0     5 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 S e w T o   5 0     5 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 S e w T o   5 0     1 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 S e w T o   1 0     1 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 S e w T o   1 0     1 0       4 0         3         " F i r s t   L a s t   J u m p " 
 
 	 G o s u b   W a i t S e w i n g 
 
 	 G o s u b   M o v e X 1 Y 1 
 
 R e t u r n 
 
 
 
 
 
 
 
 
 
 '   - - - - - - - - - - - 
 
 
 
 
 
 ' W A T C H   S e w T o _ S p e e d 
 
 ' E X E C   B u t t o n   5   T e x t   B u t t o n 5 
 
 